Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix react runtime for addons in manager #19226

Merged
merged 8 commits into from
Sep 26, 2022

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Sep 21, 2022

Issue:
So when a user has local addons, which are injecting a managerEntry, those are bundled by esbuild.
ESbuild should bundle JSX the way it's expected in the manager (which as of now is using react 16.

What I did

Add config to esbuild to ensure react runtime for addons is always as expected by the manager

I also removed the filter that removed the react internals exports..
We should not be using them, but it seems removing them breaks some things as well..

How to test

  • should work with non-local addons with managerEntries
  • should work with local addons with managerEntries

@ndelangen ndelangen self-assigned this Sep 21, 2022
@ndelangen ndelangen added the bug label Sep 21, 2022
@ndelangen ndelangen merged commit 605f113 into next Sep 26, 2022
@ndelangen ndelangen deleted the tech/ensure-esbuild-react-runtime branch September 26, 2022 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant